if not exist clean.bat goto end

del /q Debug
rmdir Debug
del all.ncb
attrib -h all.suo
del all.suo
del all.dsk
del all.~dsk
del all.ncb
del all.opt

del minscr.exe
del audioin.exe
del playogg.exe
del images.exe
del threedee.exe
del minsavers.zip

copy minscr\Release\minscr.scr minscr.exe
copy audioin\Release\audioin.scr audioin.exe
copy playogg\Release\playogg.scr playogg.exe
copy images\Release\images.scr images.exe
copy threedee\Release\threedee.scr threedee.exe

del /q minscr\Debug
del /q minscr\Release
rmdir minscr\Debug
rmdir minscr\Release
attrib -h minscr\minscr.suo
del minscr\minscr.~bpf
del minscr\minscr.~bpr
del minscr\minscr.~cpp
del minscr\minscr.~rc
del minscr\minscr.~dsk
del minscr\minscr.dsk
del minscr\minscr.ncb
del minscr\minscr.obj
del minscr\minscr.res
del minscr\minscr.scr
del minscr\minscr.suo
del minscr\minscr.tds
del minscr\minscr.aps
del minscr\minscr.cgl
del minscr\minscr.opt
del minscr\minscr.plg

del /q audioin\Debug
del /q audioin\Release
rmdir audioin\Debug
rmdir audioin\Release
attrib -h audioin\audioin.suo
del audioin\audioin.~bpf
del audioin\audioin.~bpr
del audioin\audioin.~cpp
del audioin\audioin.~rc
del audioin\audioin.~dsk
del audioin\audioin.dsk
del audioin\audioin.ncb
del audioin\audioin.obj
del audioin\audioin.res
del audioin\audioin.scr
del audioin\audioin.suo
del audioin\audioin.tds
del audioin\audioin.aps
del audioin\audioin.cgl
del audioin\audioin.opt
del audioin\audioin.plg

del /q playogg\Debug
del /q playogg\Release
rmdir playogg\Debug
rmdir playogg\Release
attrib -h playogg\playogg.suo
del playogg\playogg.~bpf
del playogg\playogg.~bpr
del playogg\playogg.~cpp
del playogg\playogg.~rc
del playogg\playogg.~dsk
del playogg\playogg.dsk
del playogg\playogg.ncb
del playogg\playogg.obj
del playogg\playogg.res
del playogg\playogg.scr
del playogg\playogg.suo
del playogg\playogg.tds
del playogg\playogg.aps
del playogg\playogg.cgl
del playogg\playogg.opt
del playogg\playogg.plg
del playogg\ogg.~cpp
del playogg\ogg.~h
del playogg\ogg.obj

del /q images\Debug
del /q images\Release
rmdir images\Debug
rmdir images\Release
attrib -h images\images.suo
del images\images.~bpf
del images\images.~bpr
del images\images.~cpp
del images\images.~rc
del images\images.~dsk
del images\images.dsk
del images\images.ncb
del images\images.obj
del images\images.res
del images\images.scr
del images\images.suo
del images\images.tds
del images\images.aps
del images\images.cgl
del images\images.opt
del images\images.plg
del images\unzip.~cpp
del images\unzip.~h
del images\unzip.obj

del /q threedee\Debug
del /q threedee\Release
rmdir threedee\Debug
rmdir threedee\Release
attrib -h threedee\threedee.suo
del threedee\threedee.~bpf
del threedee\threedee.~bpr
del threedee\threedee.~cpp
del threedee\threedee.~rc
del threedee\threedee.~dsk
del threedee\threedee.dsk
del threedee\threedee.ncb
del threedee\threedee.obj
del threedee\threedee.res
del threedee\threedee.scr
del threedee\threedee.suo
del threedee\threedee.tds
del threedee\threedee.aps
del threedee\threedee.cgl
del threedee\threedee.opt
del threedee\threedee.plg
del threedee\unzip.~cpp
del threedee\unzip.~h
del threedee\unzip.obj

zip -9 -X minsavers.zip audioin\* minscr\* playogg\* images\* threedee\* all.* clean.bat index.html scrprev.exe

:end


